<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>花花草草小店</title>
    <link rel="stylesheet" type="text/css" href="css/index_style.css"/>
</head>
<body>
<%--<h1 style="z-index: 999;">花花草草小店</h1>--%>
<h3 style="z-index: 999;">等待<i>5</i>秒钟后回到<a href="login.html">登录页</a></h3>
<ul class="list">
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>
</body>
<script>
    let num =5;
    //设置inter计时器，每1秒执行一遍
    let inter=setInterval(function () {
        num--;
        document.querySelector("i").innerText=num;
        if (num===0){
            //关闭inter计时器
            clearInterval(inter);
            location.href="login.html";
        }
    },1000);
</script>
</html>
